package com.itqf.message;

import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/12/25
 * @Time: 下午4:58
 */
@Component
@EnableBinding(StreamClient.class)
public class MeesageListener {

    @StreamListener("myMessage")
    public  void   message(String msg){
        System.out.println("meesage:"+msg);
    }
}
